package com.lk.security.properties;

import lombok.Data;

/**
 * @program: lk-security-parent
 * @description: 认证配置信息类
 * @author: Aspirin
 * @create: 2020-05-25 00:44
 */
@Data
public class AuthenticationProperties {
  private String loginPage = "/login/page";
  private String loginProcessingUrl = "/login/form";
  private String usernameParameter = "name";
  private String passwordParameter = "pwd";
  private String[] staticPaths = {"/dist/**", "/modules/**", "/plugins/**"};

  /** 认证响应类型： JSON/REDIRECT 注意：这里的类型为枚举类型 */
  private LoginResponseType loginType = LoginResponseType.REDIRECT;

  private String imageCodeUrl = "/code/image";
  private String mobileCodeUrl = "/code/mobile";
  private String mobilePage = "/mobile/page";
  private Integer tokenValiditySeconds = 604800;
}
